package XML;
import java.io.*;

public class DocumentXML {
	public TagXML radacina;
	public static boolean hasInstance = false;
	public File f = null;
	public DocumentXML instance =null;
	
	public DocumentXML(TagXML rad, String filename){
		if (hasInstance == false){
			this.radacina=rad;
			this.f= new File(filename);
			hasInstance=true;
		}
	}

	public TagXML getRadacina() {
		return radacina;
	}

	public DocumentXML getInstance() {
		return instance;
	}

	public void setInstance(DocumentXML instance) {
		this.instance = instance;
	}
	
	void setXMLFile (String filename){
		this.f= new File(filename);
	}
	
	File getXMLFile(){
		return this.f;
	}
	
	void acceptVisitor(XMLVisitor v){
		
	}
}